package com.sqm.sync_tool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户_hr平台关联表
 * </p>
 *
 * @author sxubo
 * @since 2020-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_platform_relation")
public class UserPlatformRelation extends Model<UserPlatformRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "user_platform_id", type = IdType.AUTO)
    private Integer userPlatformId;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private String userId;

    /**
     * HR平台Id
     */
    @TableField("platform_info_id")
    private String platformInfoId;

    /**
     * 状态（1：启动，-1：禁用）
     */
    @TableField("status")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.userPlatformId;
    }

}
